﻿<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
 <!--<![endif]-->
<head>
    <title>@ViewBag.Title - @GetConfig("system.appname")</title>
    <!-- Meta -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- CSS Global Compulsory -->
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="~/assets/css/shop.style.css">
    <!-- CSS Implementing Plugins -->
    <link rel="stylesheet" href="//cdn.bootcss.com/animate.css/3.5.2/animate.min.css">
    <link rel="stylesheet" href="~/assets/plugins/line-icons/line-icons.css">
    <link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" />
    <link rel="stylesheet" href="~/assets/plugins/sweetalert/sweetalert.css">
    @RenderSection("Styles", false)
    <!-- CSS Customization -->
    <link rel="stylesheet" href="~/assets/css/custom.css">
    <!--[if lt IE 9]>
        <script src="~/assets/plugins/respond.js"></script>
        <script src="~/assets/plugins/html5shiv.js"></script>
        <script src="~/assets/js/plugins/placeholder-IE-fixes.js"></script>
    <![endif]-->
</head>
<body class="header-fixed">
    <div class="wrapper">
        <!--=== Header v5 ===-->
        <div class="header-v5 header-static">
            <!-- Navbar -->
            <div class="navbar navbar-default mega-menu" role="navigation">
                <div class="container">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="/">
                            @GetConfig("system.appname")
                        </a>
                    </div>
                    <div class="shop-badge badge-icons pull-right">
                        @if (AppSession.IsLogin)
                        {
                            <a href="/account/logoff?returnUrl=@Request.Url.PathAndQuery" title="安全退出"><i class="fa fa-sign-out"></i></a>
                        }
                        else
                        {
                            <a href="/account/login?returnUrl=@Request.Url.PathAndQuery" title="登录"><i class="fa fa-sign-in"></i></a>
                        }
                    </div>
                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse navbar-responsive-collapse">
                        <!-- Nav Menu -->
                        <ul class="nav navbar-nav">
                            @{
                                var navs = new List<string[]>() {
                                            new string[] { "首页", "/"} ,
                                            new string[] { "我要兑换", "/exchange/" }
                                        };

                                if (AppSession.IsLogin)
                                {
                                    navs.AddRange(new List<string[]> {
                                    new string[] { "我的订单", "/exchange/orders" },
                                    new string[] { "收货地址", "/addresses/" }
                                });
                                }

                                foreach (var item in navs)
                                {
                                    <li @Html.Raw(ViewBag.TheNav == @item[0] ? "class=\"active\"" : "")><a href="@item[1]">@item[0]</a></li>
                                }
                            }
                        </ul>
                        <!-- End Nav Menu -->
                    </div>
                </div>
            </div>
            <!-- End Navbar -->
        </div>
        <!--=== End Header v5 ===-->
        @RenderBody()
        <!--=== Footer v4 ===-->
        <div class="footer-v4">
            <div class="copyright">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12">
                            <p>
                                @DateTime.Now.Year &copy; @GetConfig("system.appname") Fruitbay.com.cn All Rights Reserved.
                            </p>
                        </div>
                    </div>
                </div>
            </div><!--/copyright-->
        </div>
        <!--=== End Footer v4 ===-->
    </div><!--/wrapper-->
    <!-- JS Global Compulsory -->
    <script src="~/scripts/jquery-2.1.4.min.js"></script>
    <script src="~/scripts/bootstrap.min.js"></script>
    <script src="http://cdn.bootcss.com/vue/1.0.26/vue.min.js"></script>
    <!-- JS Implementing Plugins -->
    <script src="~/assets/plugins/back-to-top.js"></script>
    <script src="~/assets/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="~/assets/plugins/jquery-blockui/jquery.blockui.min.js"></script>
    <script src="~/assets/plugins/jquery-ajax-form/jquery.form.js"></script>
    <!-- JS Customization -->
    <script src="~/assets/js/custom.js"></script>
    <!-- JS Page Level -->
    @RenderSection("Scripts",false)
</body>
</html>